package org.shop.service.impl;

import java.util.List;
import org.shop.dao.SchoolMapper;
import org.shop.entity.School;
import org.shop.service.SchoolService;
import org.shop.service.base.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SchoolServiceImpl extends BaseServiceImpl<School, Long> implements SchoolService {

	@Autowired
    private SchoolMapper schoolMapper;
    
	@Override
	public List<School> getSchoolList() {
		
		return schoolMapper.getSchoolList();
	}

	@Override
	public School getSchoolBySchoolCode(String schoolName) {
		
		return schoolMapper.getSchoolBySchoolCode(schoolName);
	}

}
